<?php

namespace bee;

/**
 *
 * @author dzelenika
 *
 */
interface Iaaa extends Isingleton
{
  /**
   *
   * @param         string              $login
   * @param         string              $password
   * @return        int
   */
  public function authorize();//$login, $password);


  /**
   *
   * @param         int                 $userID
   * @param         string              $form
   * @param         string              $action
   * @return        bool
   */
  public function hasPermission($userID, $form, $action);

  /**
   *
   * @param         string              $login
   * @param         string              $password
   * @return        int
   */
  public function addUser($login, $password);

  /**
   *
   * @param         unknown             $userId
   * @return        bool
   *
   */
  public function deleteUser($userId);

  /**
   *
   * @param         unknown             $userID
   * @param         mixed               $data
   * @return        bool
   */
  public function alterUser($userID, $data);


}